package com.antdesignbackend.backend.form.certificateB.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 检疫证明(产品B)出证申请
 *
 * @author 林宇杰
 * @email certificateB
 * @date 2020-08-11 14:10:04
 */

@Data
@TableName(value = "t_certificateB")
public class CertificateB implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//申报单位全称
	@TableField(value = "Company")
	private String company;
	//货主
	@TableField(value = "Owner")
	private String owner;
	//产品名称
	@TableField(value = "ProductName")
	private String productName;
	//数量及单位
	@TableField(value = "Number")
	private Integer number;
	//产地
	@TableField(value = "Place")
	private String place;
	//生产单位名称地址
	@TableField(value = "Address")
	private String address;
	//目的地
	@TableField(value = "Destination")
	private String destination;
	//相关照片
	@TableField(value = "Photo")
	private String photo;
	//销售时间
	@TableField(value = "SaleTime")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date saleTime;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，0未通过，1通过，2审批中，3驳回
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
}
